<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	

<h:head>
<link href="../resources/css/admin.css" rel="stylesheet" type="text/css" />
</h:head>

<h:body>
	<div class="contenitore">
 		<div class="riga">
  			<div class="colonna-1">
				<img id="immagine" src="../resources/images/logo.jpg" alt="" />
				
  			</div>
  			<div class="colonna-1-2">
  				<h1>Administration Panel</h1>	
 				<h:outputText id="welcometext" value="Pannello dedicato alla gestione e creazione dei contenuti del sito TravelDream"></h:outputText>
  			</div>
 		</div>
 		
 		<div id="riga2">
  			<div class="colonna-2-1">
  				<h:form>
						<p:commandButton action="#{logoutBean.logout}" value="Logout" />
				</h:form>
  			</div>
  			<div class="colonna-2-2">
  				<h:form>  
    				<p:dataTable var="transport" value="#{gestioneShowTransportLocal.transports}" tableStyle="width:auto">  
       					<p:column headerText="Nome">  
            				<h:outputText value="#{transport.nome}" />  
        				</p:column>  
  
       					<p:column headerText="Città Partenza">  
            				<h:outputText value="#{transport.cittaPartenza}" />  
        				</p:column>  
  
        				<p:column headerText="Città Arrivo">  
            				<h:outputText value="#{transport.cittaArrivo}" />  
        				</p:column>  
        				
        				<p:column headerText="Data Partenza">  
            				<h:outputText value="#{transport.dataPartenza}" />  
        				</p:column>
  
        				<p:column headerText="Frequenza">  
            				<h:outputText value="#{transport.frequenza}" />  
        				</p:column>  
        				
        				<p:column headerText="Durata">  
            				<h:outputText value="#{transport.durata}" />  
        				</p:column>  
        				
        				<p:column headerText="Prezzo">  
            				<h:outputText value="#{transport.prezzo}" />  
        				</p:column>
        				
        				<p:column headerText="Numero Posti">  
            				<h:outputText value="#{transport.NPosti}" />  
        				</p:column>
  
        				
        
    				</p:dataTable>  
</h:form> 
  				
  			</div>
  			<div class="colonna-2-3">
  				<h:panelGrid columns="1" cellpadding="10">
  					<h:form>
      				<p:commandButton id="button" action="showhotel" value="Mostra tutti gli Hotel" ajax="false"/>
      				<p:commandButton action="showtransport" value="Mostra tutti i Trasporti" ajax="false"/>
      				<p:commandButton action="showexcursion" value="Mostra tutte le Escursioni" ajax="false"/>
      				<p:commandButton action="showpacchetto" value="Mostra tutti i Pacchetti" ajax="false"/>
      				</h:form>
      			</h:panelGrid>
      			<h:panelGrid columns="1" cellpadding="10">
      				<h:form>
      				<p:commandButton action="creahotel" value="+Crea Hotel" ajax="false"/>
      				<p:commandButton action="creatrasporto" value="+Crea Trasporto" ajax="false"/>
      				<p:commandButton action="creaescursione" value="+Crea Escursione" ajax="false"/>
      				<p:commandButton action="creapacchetto" value="+Crea Pacchetto" ajax="false"/>
      				</h:form>
      			</h:panelGrid>
  			
  			</div>
 		</div>
 	</div>
</h:body>
</html>